package cn.me.alphamq.vo;

import java.util.List;

/**
 * 分页查询结果
 *
 * @author f
 */
public class PageVO<T> {

    private List<T> records;
    private int currentPage;
    private int totalPage;

    public PageVO() {
    }

    public PageVO(List<T> records, int currentPage, int totalPage) {
        this.records = records;
        this.currentPage = currentPage;
        this.totalPage = totalPage;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}
